﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000AD9 RID: 2777
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class MatchResultScNotify : IMessage<MatchResultScNotify>, IMessage, IEquatable<MatchResultScNotify>, IDeepCloneable<MatchResultScNotify>, IBufferMessage
	{
		// Token: 0x1700230A RID: 8970
		// (get) Token: 0x06007C41 RID: 31809 RVA: 0x0014BA5D File Offset: 0x00149C5D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<MatchResultScNotify> Parser
		{
			get
			{
				return MatchResultScNotify._parser;
			}
		}

		// Token: 0x1700230B RID: 8971
		// (get) Token: 0x06007C42 RID: 31810 RVA: 0x0014BA64 File Offset: 0x00149C64
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return MatchResultScNotifyReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700230C RID: 8972
		// (get) Token: 0x06007C43 RID: 31811 RVA: 0x0014BA76 File Offset: 0x00149C76
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return MatchResultScNotify.Descriptor;
			}
		}

		// Token: 0x06007C44 RID: 31812 RVA: 0x0014BA7D File Offset: 0x00149C7D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MatchResultScNotify()
		{
		}

		// Token: 0x06007C45 RID: 31813 RVA: 0x0014BA90 File Offset: 0x00149C90
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MatchResultScNotify(MatchResultScNotify other) : this()
		{
			this.memberInfo_ = other.memberInfo_.Clone();
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06007C46 RID: 31814 RVA: 0x0014BAC6 File Offset: 0x00149CC6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MatchResultScNotify Clone()
		{
			return new MatchResultScNotify(this);
		}

		// Token: 0x1700230D RID: 8973
		// (get) Token: 0x06007C47 RID: 31815 RVA: 0x0014BACE File Offset: 0x00149CCE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<MemberInfo> MemberInfo
		{
			get
			{
				return this.memberInfo_;
			}
		}

		// Token: 0x1700230E RID: 8974
		// (get) Token: 0x06007C48 RID: 31816 RVA: 0x0014BAD6 File Offset: 0x00149CD6
		// (set) Token: 0x06007C49 RID: 31817 RVA: 0x0014BADE File Offset: 0x00149CDE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x06007C4A RID: 31818 RVA: 0x0014BAE7 File Offset: 0x00149CE7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as MatchResultScNotify);
		}

		// Token: 0x06007C4B RID: 31819 RVA: 0x0014BAF8 File Offset: 0x00149CF8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(MatchResultScNotify other)
		{
			return other != null && (other == this || (this.memberInfo_.Equals(other.memberInfo_) && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06007C4C RID: 31820 RVA: 0x0014BB48 File Offset: 0x00149D48
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.memberInfo_.GetHashCode();
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06007C4D RID: 31821 RVA: 0x0014BB95 File Offset: 0x00149D95
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06007C4E RID: 31822 RVA: 0x0014BB9D File Offset: 0x00149D9D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06007C4F RID: 31823 RVA: 0x0014BBA8 File Offset: 0x00149DA8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(32);
				output.WriteUInt32(this.Retcode);
			}
			this.memberInfo_.WriteTo(ref output, MatchResultScNotify._repeated_memberInfo_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06007C50 RID: 31824 RVA: 0x0014BBF8 File Offset: 0x00149DF8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.memberInfo_.CalculateSize(MatchResultScNotify._repeated_memberInfo_codec);
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06007C51 RID: 31825 RVA: 0x0014BC4C File Offset: 0x00149E4C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(MatchResultScNotify other)
		{
			if (other == null)
			{
				return;
			}
			this.memberInfo_.Add(other.memberInfo_);
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06007C52 RID: 31826 RVA: 0x0014BC99 File Offset: 0x00149E99
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06007C53 RID: 31827 RVA: 0x0014BCA4 File Offset: 0x00149EA4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 32U)
				{
					if (num != 106U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.memberInfo_.AddEntriesFrom(ref input, MatchResultScNotify._repeated_memberInfo_codec);
					}
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04002F76 RID: 12150
		private static readonly MessageParser<MatchResultScNotify> _parser = new MessageParser<MatchResultScNotify>(() => new MatchResultScNotify());

		// Token: 0x04002F77 RID: 12151
		private UnknownFieldSet _unknownFields;

		// Token: 0x04002F78 RID: 12152
		public const int MemberInfoFieldNumber = 13;

		// Token: 0x04002F79 RID: 12153
		private static readonly FieldCodec<MemberInfo> _repeated_memberInfo_codec = FieldCodec.ForMessage<MemberInfo>(106U, EggLink.DanhengServer.Proto.MemberInfo.Parser);

		// Token: 0x04002F7A RID: 12154
		private readonly RepeatedField<MemberInfo> memberInfo_ = new RepeatedField<MemberInfo>();

		// Token: 0x04002F7B RID: 12155
		public const int RetcodeFieldNumber = 4;

		// Token: 0x04002F7C RID: 12156
		private uint retcode_;
	}
}
